<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
    />
    <link rel="icon" type="image/svg+xml" href="/favicon.ico" />
    <title>文旅产品平台</title>
  </head>

  <body>
    <noscript>
      <strong
        >We're sorry but 文旅产品平台 doesn't work properly without JavaScript
        enabled. Please enable it to continue.</strong
      >
    </noscript>
    <div id="app"></div>
    <script type="module" src="/src/main.js"></script>
    <script type="text/javascript">
      window._AMapSecurityConfig = {
        securityJsCode: 'c284724ed8ed367a4350dc8cb8b50ed4'
        // 例如 ：serviceHost:'http://1.1.1.1:80/_AMapService',
      }
    </script>
    <!-- built files will be auto injected -->
    <script src="https://webapi.amap.com/maps?v=1.4.15&key=4cb80468e700f67dc1a15042c8e6263d&&plugin=AMap.Scale,AMap.OverView,AMap.MarkerCluster,AMap.ToolBar,AMap.PolyEditor,AMap.MouseTool,AMap.MapType,AMap.RangingTool,AMap.CitySearch,AMap.Weather,AMap.DistrictSearch,AMap.Geocoder,AMap.DistrictLayer,AMap.PlaceSearch,AMap.Geolocation"></script>
    <script src="//webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>
    <!--GGMap-->
    <!-- <script type="text/javascript" src="http://maps.google.com/maps/api/js?key=AIzaSyDpQfrlJS0x9GwpefBs56P35N-dNsojv2g&language=en-US"></script> -->
    <script>
      const url =
        localStorage.getItem('language') === 'en'
          ? 'https://maps.google.com/maps/api/js?key=AIzaSyDpQfrlJS0x9GwpefBs56P35N-dNsojv2g&language=en-US'
          : 'https://maps.google.com/maps/api/js?key=AIzaSyDpQfrlJS0x9GwpefBs56P35N-dNsojv2g&language=zh-CN'
      const script = document.createElement('script')
      script.type = 'text/javascript'
      script.src = url
      document.head.appendChild(script)
    </script>
  </body>
</html>
